package com.example.buhui.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.buhui.entity.Employee;
import com.example.buhui.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {

    IPage<Employee> findListByPage(Page page);

    @Select("select * from tbl_employee RIGHT JOIN student on tbl_employee.id=student.id")
    List<Employee> findLian();



}
